<!DOCTYPE html>
<html lang="en">
<head>
    <link rel="stylesheet" type="text/css" href="/easyui.css">
    <link rel="stylesheet" type="text/css" href="/icon.css">
    <link rel="stylesheet" type="text/css" href="/demo.css">
    <script src="/jquery.min.js"></script>
    <script src="/jquery.easyui.min.js"></script>
    <meta charset="UTF-8">
    <title>学生信息</title>
    <script type="text/javascript">
        function GetQueryString(name)
        {
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
            var r = window.location.search.substr(1).match(reg);
            if(r!=null)return  unescape(r[2]); return null;
        }
    </script>
</head>
<body>
<h2>学号为<span></span>的同学,你的个人信息如下：</h2><hr />
<table id="dg"></table><br />
<a href="/StudentManage/showIndex">返回首页</a>
<script type="text/javascript">
    var sid=GetQueryString("sid");
    $("h2 span").text(sid);
    $("#dg").datagrid({
        url:"/StudentShowController/showStudent",
        queryParams:{sid:sid},
        rownumber:'true',
        fitColumns:'true',
        columns:[[
            {field:'sid',title:'学号',with:100},
            {field:'sname',title:'名字',width:100},
            {field:'ssex',title:'性别',width:50},
            {field:'bid',title:'班级编号',width:50}
        ]]
    });
</script>
</body>
</html>